package com.example.value_strings_demo;

import android.content.Context;
import android.content.res.Resources;

import java.util.ArrayList;
import java.util.List;

/**
 * Created by eyesee on 2017/4/3.
 */

public class StringUtils {

    private static Resources resources = null;
    private static List<String> list = null;

    public static List<String> getSysInfo(Context context) {
        list = new ArrayList<>();
        resources = context.getResources();
        String[] array = resources.getStringArray(R.array.sys_info);
        for (int i = 0; i < array.length; i++) {
            list.add(array[i]);
        }
        return list;
    }

}
